# this is here to fix the weird way rails includes the port in the cache key

module CachingStuff
	module ActionController
		module Caching
			module Fragments
				def fragment_cache_key(name)
					"logjuicer_#{RAILS_ENV}:#{name.is_a?(Hash) ? url_for(name.merge(:host=>"")).split(":///").last : name}"
				end
			end
		end
	end
end

ActionController::Base.class_eval do
  include CachingStuff::ActionController::Caching::Fragments
end
